<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 1200px;
            height: 460px;
            background-color: #666666;
            margin: auto;
        }

        .box .box1 {
            float: left;
            width: 230px;
            height: 460px;
            background-color: #dd3e3e;
        }

        .box .box2 {
            float: right;
            width: 970px;
            height: 460px;
            background-color: rgb(108, 13, 233);
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="box1"></div>
        <div class="box2"></div>
    </div>
</body>

</html>